package cn.jee.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/param")
public class ParamController {
  @RequestMapping("/input")
  public String input(){
    return "/param_input";
  }
  @ResponseBody
  @RequestMapping("/check")
  public Map check(@RequestParam List<String> strs, int[] ints, LocalDate date){
    return Map.of("strs",strs,"ints",ints,"date",date);
  }
}
